package breeze.pixel.weather.main_view.model;

public class HeWeatherErrorCode {
    
    public static final String TAG = "HeWeatherErrorCode";
    
    public static String getError(String code){
		String error = "";
		switch(code){
			case "204":
				error = "你查询的地区暂时没有你需要的数据";
				break;
			case "400":
				error = "包含错误的请求参数或缺少必选的请求参数";
				break;
			case "401":
				error = "错误的KEY、数字签名错误、KEY的类型错误";
				break;
			case "402":
				error = "超过访问次数";
				break;
			case "403":
				error = "无访问权限";
				break;
			case "404":
				error = "查询地区不存在";
				break;
			case "429":
				error = "超过每分钟访问次数";
				break;
			case "500":
				error = "无响应或超时";
				break;
		}
		return error;
	}
    
}
